<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('Api调用日志详细')" />
    <th:block th:include="include :: jsonview-css" />
    <style type="text/css">
        .layui-input-block{padding-top: 10px;}
        .layui-form-item{margin-bottom: 5px;}
        .layui-form-label {
            width: 120px;
            padding: 10px -0px 0px 10px;
        }
        .paramstyle {
            display: block;
            padding: 9.5px;
            margin: 0 0 10px 20px;
            font-size: 13px;
            line-height: 1.42857143;
            color: #333;
            word-break: break-all;
            word-wrap: break-word;
            background-color: #f5f5f5;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
    </style>
</head>
<body>
 <form class="layui-form" id="apiLogForm" style="padding: 5px 30px 10px 50px;">
    <div class="layui-form-item">
        <label class="layui-form-label">日志序号：</label>
        <div class="layui-input-block" th:text="${apilog.id}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">功能类型：</label>
        <div class="layui-input-block" th:text="${apilog.type}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">输入参数：</label>
        <div class="layui-input-block"><span class="paramstyle" th:text="${apilog?.input}"></span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">输出参数：</label>
        <div class="layui-input-block"><span class="paramstyle" th:text="${apilog?.output}"></span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态码：</label>
        <div class="layui-input-block" th:text="${apilog.code}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态提示：</label>
        <button type="button" th:class="${apilog.code == 0 ? 'layui-btn layui-btn-xs' : 'layui-btn layui-btn-xs layui-btn-danger'}"  style="margin-top: 8px;" th:text="${apilog.code == 0 ? '成功' : apilog.message}">
        </button>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创建时间：</label>
        <div class="layui-input-block" th:text="${#dates.format(apilog.createTime, 'yyyy-MM-dd HH:mm:ss')}">
        </div>
    </div>
 </form>
</body>
</html>